<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>sysRole</title>
  <${r"#"}include "/include/layui-top.html">
</head>
<body style='overflow: scroll;overflow:hidden'>
<form class="layui-form layui-card-body" action="javascript:void(0);">
  <div class="layui-form-item">
  	<div class="layui-inline">
  	  <input class="layui-input" type="text" id="roleName" name="roleName" autocomplete="off" placeholder="角色名称" />
    </div>
  	<div class="layui-inline">
  	  <input class="layui-input" type="text" id="roleCode" name="roleCode" autocomplete="off" placeholder="角色编码" />
    </div>
    <div class="layui-inline">
    	<div class="layui-btn-group">
    		<button class="layui-btn" lay-submit lay-filter="search-opt">查询</button>
    	</div>
    </div>
  </div>
  <div class="layui-row layui-col-space30">
    <div class="layui-col-md5">
		<table id="table" lay-size="sm" class="layui-hide" lay-filter="table"></table>
    </div>
    <div class="layui-col-md7">
    	<div class="layui-btn-group layui-fluid">
		  <button type="button" class="layui-btn layui-btn-sm layui-btn-normal" opt_user="refresh_opt">
		  	<i class="layui-icon">&#xe669;</i> 刷新资源
		  </button>
		</div>
		<div id="treePanel" class="layui-card-body"></div>
    </div>
  </div>
</form>
<${r"#"}include "/include/layui-end.html">
<script type="text/html" id="toolbar">
  <div class="layui-btn-group">
    <button class="layui-btn layui-btn-sm" lay-event="addData-opt">
	  <i class="layui-icon">&#xe654;</i> 新增
	</button>
	<button class="layui-btn layui-btn-sm" lay-event="save_role_resource_opt">
	  <i class="layui-icon">&#x1005;</i> 保存
  	</button>
	<button class="layui-btn layui-btn-sm layui-btn-danger" lay-event="batch-del-opt">
	  <i class="layui-icon">&#xe640;</i> 批量删除
	</button>
  </div>
  <button class="layui-btn layui-btn-sm layui-btn-normal" lay-event="refresh-opt">
	<i class="layui-icon">&#xe669;</i> 刷新
  </button>
</script>
<script type="text/html" id="optbar">
  <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="detail">查看</a>
  <a class="layui-btn layui-btn-xs" lay-event="edit-opt">编辑</a>
  <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del-opt">删除</a>
</script>
<script>
	layui.config({
		base: '/components/app/boss/sysRole/'
	}).use(['table','tree','util','laydate','layer','form','sysRolePage'],function(){
		var sysRolePage = layui.sysRolePage;
		sysRolePage.render();
	});
</script>
</body>
<!-- windows弹窗定义开始 -->
<div id="windows" style="display: none;">
	<form class="layui-form layui-fluid" id="win-form" lay-filter="win-form" action="javascript:;">
	<!-- <div class="layui-form-item">
	        <div class="layui-inline">
	            <label class="layui-form-label">标题</label>
	            <div class="layui-input-inline">
	                <input class="layui-input" type="text" autocomplete="off" />
	            </div>
	        </div>
	        <div class="layui-inline">
	            <label class="layui-form-label">标题</label><div class="layui-input-inline">
	                <input class="layui-input" type="text" autocomplete="off" />
	            </div>
	        </div>
	    </div> -->
	<!-- <div class="layui-form-item">
	        <label class="layui-form-label">AppID</label><div class="layui-input-block">
	            <input class="layui-input" type="text" id="appId-win" name="appId" placeholder="AppID"  autocomplete="off" />
	        </div>
	    </div> -->
	    <div class="layui-form-item">
	        <input class="layui-input" type="hidden" id="id-win" name="id" placeholder="id"   autocomplete="off" />
	        <div class="layui-inline">
	            <label class="layui-form-label">角色名称</label>
	            <div class="layui-input-inline">
	                <input class="layui-input" type="text" id="roleName-win" name="roleName" placeholder="角色名称"  lay-verify="required" autocomplete="off" />
	            </div>
	        </div>
	        <div class="layui-inline">
	            <label class="layui-form-label">角色编码</label>
	            <div class="layui-input-inline">
	                <input class="layui-input" type="text" id="roleCode-win" name="roleCode" placeholder="角色编码"   autocomplete="off" />
	            </div>
	        </div>
	    </div>
		<input id="win-submit" lay-submit lay-filter="win-submit" hidden="true"/>
	</form>
</div>
<!-- windows弹窗定义结束 -->
</html>